package com.sinosoft.perfect.system._authorization.service;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.system._authorization.vo.RoleResourceRelationAuthorize;

public interface IRoleResourceAuthorizeService {

	public void insertByRoleResourceRelationAuthorize
		(RoleResourceRelationAuthorize roleResourceRelationAuthorize) throws SQLException;
	
	public RoleResourceRelationAuthorize queryTRoleResourceRelationByResourceAndRole
		(String resourceId,String roleSystemId) throws SQLException;
	
	public void updatePowerOfRoleResource
		(RoleResourceRelationAuthorize roleResourceRelationAuthorize) throws SQLException;
	
	public void deletePowerOfRoleResource
		(RoleResourceRelationAuthorize roleResourceRelationAuthorize) throws SQLException;
	
	public List<String> queryResourceIdsOfRole(String roleSystemId) throws SQLException;
	
	public boolean operateResourceRoleAuthorize(String chooseIds,String roleSystemId) throws SQLException;
}
